# 打印信息
message(STATUS "src This is BINARY dir " ${PROJECT_BINARY_DIR})
message(STATUS "src This is SOURCE dir " ${PROJECT_SOURCE_DIR})

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

# 定义工程根目录; CMAKE_SOURCE_DIR为内建变量，表示工程根目录的CMakeLists.txt文件路径
SET(ROOT_DIR ${CMAKE_SOURCE_DIR})


# add the path of searching headers
# the below is all ok
#include_directories(/usr/local/include)
include_directories(${ROOT_DIR}/third_party/include)

# add the path of libs
link_directories(/usr/local/lib)

set(SRC_LIST_MAIN ${ROOT_DIR}/src/main.cpp)

# add compile files and link libs
add_executable(main ${SRC_LIST_MAIN})

target_link_libraries(main libyaml-cpp.a)
